package com.qianniu.napi.admin.service.impl;

import com.qianniu.napi.admin.entity.Fens;
import com.qianniu.napi.admin.mapper.FensMapper;
import com.qianniu.napi.admin.mapper.OrderMapper;
import com.qianniu.napi.admin.service.IFensService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户粉丝表 服务实现类
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
@Service
public class FensServiceImpl extends ServiceImpl<FensMapper, Fens> implements IFensService {

    private static final Logger logger = LoggerFactory.getLogger(FensServiceImpl.class);

    @Autowired
    private FensMapper fensMapper;

    public int getRankingCount(Map<String,Object> map){
        return fensMapper.getRankingCount(map);
    }

    public List<Fens> getRankingList(Map<String,Object> map){
        return fensMapper.selectRankingList(map);
    }

}
